package run.halo.app.model.params;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import javax.validation.constraints.Size;
import lombok.Data;
import run.halo.app.model.dto.base.InputConverter;
import run.halo.app.model.entity.User;
import run.halo.app.model.support.CreateCheck;
import run.halo.app.model.support.UpdateCheck;

/**
 * addUser param.
 *
 */
@Data
public class UpdateUserPassParam implements InputConverter<User> {

    @NotNull(message = "id不能为空", groups = {UpdateCheck.class})
    private Integer id;


    @Null(groups = UpdateCheck.class)
    @Size(min = 8, max = 100, message = "密码的字符长度必须在 {min} - {max} 之间", groups = {CreateCheck.class})
    private String password;



}
